<template>
  <nav>
    <h1>Navbar</h1>
    <button @click="handleClick()">clickMe</button>
  </nav>
</template>

<script>
export default {
  name: 'Navbar',
  data(){
    return {
      isShow: false
    }
  },
  methods: {
    handleClick(){
      this.isShow = !this.isShow 
      this.$emit("myevent",this.isShow)
    }
  }
}
</script>

<style>

</style>